package com.yp.infrastructure.mvc.i18n;

import org.springframework.context.MessageSource;

public abstract class I18nAbstractMessageSourceManager implements IMessageSourceManager {
    private static MessageSource messageSource = null;

    public abstract MessageSource getMessageSource();

    public MessageSource getI18nMessageSource() {
        if (null == messageSource) messageSource = getMessageSource();
        return messageSource;
    }
}
